
<?php if(isset($logged_in) == false)
	$registered = false;
   else
	$registered = true;
?>

<div class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="brand" href="<?= $base_url ?>home">Faculty Management Information System</a>
			<?php if($registered) : ?>
			<div class="nav-collapse collapse">
				<ul class="nav">
					<li><a href="<?= $base_url ?>document">Documents</a></li>
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Members <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a href="<?= $base_url ?>faculty/search">Search Member</a></li>
                            <li><a href="<?= $base_url ?>faculty/addprofile">Add Member</a></li>
                            <li><a href="<?= $base_url ?>committee">View Committee</a></li>
						</ul>
					</li>
					<li>
						<a href="<?= $base_url ?>meeting">Meetings</a>

					</li>
					<li><a href="<?= $base_url ?>reports">Reports</a></li>
					<li><a href="<?= $base_url ?>plantilla">Plantilla</a></li>
				</ul>
				<ul class="nav pull-right">
					
					<li class="dropdown">
						<a href="#"
						   class="dropdown-toggle"
						   data-toggle="dropdown">Help <strong class="caret"></strong></a>
						<ul class="dropdown-menu">
							<li>
								<a href="<?= $base_url ?>information">Information</a>
							</li>
							<li class="divider"></li>
							<li>
								<a href="<?= $base_url ?>about">About Us</a>
							</li>
						</ul>
					</li>
					<li class="divider-vertical">
					</li>
					<li class="dropdown">
						<a href="#"
						   class="dropdown-toggle"
						   data-toggle="dropdown"><?= $username ?><strong class="caret"></strong></a>
							<ul class="dropdown-menu">
								<li>
									<a href="<?= $base_url ?>faculty/viewprofile/<?= $user_id ?>">Profile</a>
								</li>
								<li>

								<li class="divider"></li>
								<li>
									<a href="<?= $base_url ?>fmis/logout">Log out</a>
								</li>
							</ul>
					</li>
				</ul>
			</div>
			<!--/.nav-collapse -->
			<?php endif ?>
		</div>
	</div>
</div>

<div id="push"></div>